from hyrobot.common import *
from lib.webui import  *

class c73299:
    driver = webdriver.Firefox()
    name = "登陆界面UI-73299"

    def teststeps(self):

        self.driver.implicitly_wait(5)
        self.driver.get("http://172.17.66.19:8080/")
        self.driver.set_window_size(1200,800)
        STEP(1, '获取登录界面标题，非放大化')
        get_title = self.driver.find_element(By.CLASS_NAME,
            "title").text
        expect_title = "Kylin客户服务平台"
        CHECK_POINT("登录界面标题与预期是否一致",get_title == expect_title)
        STEP(2, '获取登录界面标题，放大化')
        self.driver.maximize_window()
        get_max_title = self.driver.find_element(By.CSS_SELECTOR,"#app > div > form > div.title-container > h3").text
        CHECK_POINT("放大化登录界面标题与预期是否一致",get_max_title == expect_title)

        self.driver.quit()